package com.itic.ht.user.htuser.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itic.appbase.framework.common.service.HtCrudService;
import com.itic.ht.user.htuser.persistence.dao.HtuserDao;
import com.itic.ht.user.htuser.persistence.model.Htuser;
import com.itic.ht.user.htuser.persistence.model.HtuserExample;


@Service
@Transactional
public class HtuserService
     extends HtCrudService<HtuserDao,Htuser,HtuserExample> {
    @Autowired
    private HtuserDao htuserDao;

	public String deltrue(Integer id) {
		int result = htuserDao.deleteByPrimaryKey(id);
		if(result>0){
    		return SUCCESS;
    	}else{
    		return FAILED;
    	}
	}

}